﻿<Window x:Class="Boggle.Client.OptionsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Bogglex Options" Height="150" Width="350" WindowStyle="SingleBorderWindow"
        ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
    <DockPanel>
        <StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Right" Orientation="Horizontal">
            <Button Content="_OK" Name="okButton" Click="okButton_Click"/>
            <Button Content="_Cancel" Name="cancelButton" Click="cancelButton_Click" />
        </StackPanel>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="2*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="2*" />
            </Grid.ColumnDefinitions>
            <Label Target="{Binding ElementName=dictionaryComboBox}" Content="_Dictionary" />
            <ComboBox VerticalAlignment="Center" Name="dictionaryComboBox" Grid.Column="1" ItemsSource="{Binding Dictionaries}" SelectedValue="{Binding SelectedDictionary}">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Name}" />
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
            <TextBlock VerticalAlignment="Center" TextWrapping="Wrap" Margin="8" Grid.Row="1" Grid.ColumnSpan="2" Text="{Binding SelectedDictionary.Description}" />
        </Grid>
    </DockPanel>
</Window>
